<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %> 
<form id="pagerForm" method="post" action="#rel#">
	<input type="hidden" name="pageNum" value="${currentPage }" /> 
	<input type="hidden" name="numPerPage" value="${numPerPage}" /> 
	<input type="hidden" name="orderField" value="${param.orderField}" /> 
	<input type="hidden" name="orderDirection" value="${param.orderDirection}" />
</form>
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);"	action="order_filing.action" method="post">
		<!--  -->
		<div class="searchBar nowrap">
			<p>
				<label>学校名称:</label>
				<input type="text" name="sclName" value="${sclName}" maxlength="20" />
			</p>
			<p><label>单据编号</label>
			<input type="text" name="rcoNo" value="${rcoNo}" maxlength="20" />
			</p>
			<p>
				<label>审核结果：</label>
				<select class="combox" name="rcoProgressStatus">
					<option value="">---所有结果---</option>
					<option ${rcoProgressStatus == '4'?"selected":""} value="4">通过</option>
					<option ${rcoProgressStatus == '5'?"selected":""} value="5">驳回</option>
				</select>
			</p>
			<div class="subBar">
				<ul>
					<li>
						<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>


<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a id="rco_filing_lookdetail_a" class="look" 
					href="orderDetail_list.action?rcoId={order_id}"  
					rel="rcod_filing_detail" 
					target="dialog" 
					max="true"
					mask="true"  
					resizable="true" 
					width="800" 
					height="480"
					warn="请选择一条单据" 
					title="查看明细"	>
					<span>查看明细</span>
				</a>
			</li>
			<li class="line">line</li>
		<%--
			<li><a class="add" href="school_addUI.action" rel="school_addUI"  target="navTab" title="新增学校" ><span>新增</span></a></li>
			<li class="line">line</li>
			<li>
				<a id="edit2" href="school_editUI.action?sclId={school_id}" class="edit"   target="navTab" warn="请选择一条信息" rel="school_editUI" style="display:bolck;"><span>修改</span></a>
				<!-- <a id="edit1"  class="edit"   warn="请选择一条信息" rel="school_editUI" style="display:none;" onclick="message();"><span>修改</span></a>		 -->
				<!--<a id="edit1"  class="edit"   warn="请选择一条信息" rel="school_edit" style="display:none;" onclick="message();"><span>修改</span></a> -->
			</li>
			<!-- <li class="line">line</li>
			<li><a class="delete" href="school_delete.action?sclId={school_id}"  target="ajaxTodo"   title="确实要删除这些记录吗?">	<span>删除</span></a></li> -->		
			<li class="line">line</li>
			<li><a class="look" href="school_show.action?sclId={school_id}" rel="insideUser_show"  target="navTab" warn="请选择一个学校" title="查看学校"><span>查看</span>	</a></li>
			<c:if test="${currentUser.insideUser.isuGroupCode eq '1000' }">
			<li class="line" id="school_check_line">line</li>
			<li><a id="school_check" class="icon-ok" href="school_check.action?sclId={school_id}"   target="ajaxTodo" mask="true"   warn="请选择一个学校" title="确定要通过审核吗？"><span>审核</span></a></li>
			</c:if>
			<li class="line" id="school_bindEcid_line">line</li>
			<li><a id="school_bindEcid" class="icon-ok" href="school_bindEcinfoUI.action?sclId={school_id}"  rel="school_bindEcinfoUI" target="dialog" mask="true"  height="200" width="400" resizable="false" warn="请选择一个学校" title="绑定集团客户"><span>绑定集团客户</span></a></li>
			<li class="line" style="display: none;">line</li>
			<li style="display: none;">
				<a  id="school_phone_allow" class="icon-ok" href="school_allowPhone.action?sclId={school_id}&flag=1"   target="ajaxTodo" mask="true"   warn="请选择一个学校" title="确定要允许拨打省外电话吗？"><span>允许拨打省外电话</span></a>
				<a id="school_phone_notAllow" class="icon" href="school_allowPhone.action?sclId={school_id}&flag=0"   target="ajaxTodo" mask="true"   warn="请选择一个学校" title="确定要禁止拨打省外电话吗？" style="display:none;"><span>禁止拨打省外电话</span></a>
			</li>
			<c:if test="${currentUser.insideUser.isuGroupCode eq '1000' }">
			<li class="line" >line</li>
			<li><a  id="school_bizStatus_1" class="icon-ok" href="school_bizControl.action?sclId={school_id}&flag=1"   target="ajaxTodo" mask="true"   warn="请选择一个学校" title="确定要启用该学校的业务吗？"><span>业务启用</span></a>
				<a id="school_bizStatus_0" class="icon" href="school_bizControl.action?sclId={school_id}&flag=0"   target="ajaxTodo" mask="true"   warn="请选择一个学校" title="确定要停用该学校的业务吗？" style="display:none;"><span>业务停用</span></a>
			</li>
			</c:if>
			<!--
			 <a href="schoolAction!addBossEcUi.action?id=${school.sclId }" target="dialog" rel="addBossEc">绑定</a>
			<li><a id="insideUser_setFlagLink" class="icon" href="insideUser_updateFlag.action?isuId={user_id}" target="ajaxTodo" title="确实要停用/启用该内部用户吗?"><span id="insideUser_setFlagText">停用/启用</span></a></li> 
			<li class="line">line</li>
			<li><a class="edit" href="insideUser_resetPwd.action?isuId={user_id}"   target="ajaxTodo"  title="确定要重置该用户密码吗？"><span>密码重置</span>	</a></li>
			<li class="line">line</li>
			<li><a class="export" href="demo/common/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出</span></a></li>
			 -->
			 <c:if test="${currentUser.debug}">
				 <li class="line">line</li>
				 <li class="line">line</li>
				 <li class="line">line</li>
				 <li><a class="icon" href="school_removeEcid.action?sclId={school_id}"  rel="school_removeEcId" target="ajaxTodo"  warn="请选择一个学校" title="解绑集团客户"><span>解绑集团客户</span></a></li>
			 </c:if>
			  --%>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="120">
		<thead>
			<tr>
				<th align="center">序号</th>
				<th>单据编号</th>
				<th>学校名称</th>
				<th>补卡数量</th>
				<th>费用总额</th>
				<th>申请人</th>
				<th>申请时间</th>
				<th>流程状态</th>
				<th>处理人</th>
				<th>处理时间</th>
				<th>简要说明</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${recordList}" var="order" varStatus="status">
			<tr target="order_id" rel="${order.rcoId }" onclick="school_doSelect(this)">
				<td>${(status.index+1) + (currentPage-1) * numPerPage}</td>
				<td>${order.rcoNo }</td>
				<td>${order.sclName }</td>
				<td>${order.rcoCountNumber }</td>
				<td>
					<c:choose>
						<c:when test="${order.rcoAmount==0 }">
							<span style="color:green;line-height: 21px;">免费</span>
						</c:when>
						<c:otherwise>
							${order.rcoAmount }
						</c:otherwise>
					</c:choose>
				</td>
				<td>${order.createOperName }</td>
				<td>
					<fmt:parseDate  value="${order.createTime}" var="createTime" pattern="yyyyMMddHHmmss"/>  
					<fmt:formatDate value="${createTime}" pattern="yyyy-MM-dd HH:mm:ss" /> 
				</td>
				<td>
					${application.orderProgressStatus[order.rcoProgressStatus] }
				</td>
				<td>${order.dealOperName }</td>
				<td>
					<fmt:parseDate  value="${order.dealTime}" var="dealTime" pattern="yyyyMMddHHmmss"/>  
					<fmt:formatDate value="${dealTime}" pattern="yyyy-MM-dd HH:mm:ss" /> 
				</td>
				<td>${order.remark }</td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
	
	<%@ include file="/WEB-INF/jsp/public/panelBar.jsp"%>	
</div>
